import request from '@/utils/request'

//添加计划
export const addplanService = (data) => request.post(`/plans/create`, data)
//更新计划
export const updateplanService = (data) => request.post(`/plans/${data.id}/update`, data)


//添加课堂
export const addtaskService = (data) => request.post(`/tasks/${data.id}/create`, data)
//更新课堂
export const updateTaskService = (data) => request.post(`/tasks/${data.id}/update`, data)

//添加student的外键
export const addStudentPlanService = (data) => request.post(`/students/plan/${data.id}/create`, data)
//添加task的外键
export const addPlanTaskService = (data) => request.post(`/plans/task/${data.id}/create`, data)

//删除附件
export const removefileService = (id) => request.post(`/attachments/${id}/remove`)